package com.itcam.service.impl;

import com.itcam.dao.BookDao;
import com.itcam.dao.impl.BookDaoImpl;
import com.itcam.service.BookService;

public class BookServiceImpl implements BookService {
//    private BookDao bookDao = new BookDaoImpl();

    private BookDao bookDao;
    public void save() {
        System.out.println("book service save ...");
        bookDao.save();
    }

    //提供对应的set方法
    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }
}